<?php

/**
 * Created by PhpStorm.
 * User: mac
 * Date: 2017/9/5
 * Time: 下午6:38
 */

namespace Mq\model;

class  TestTian extends ClientBaseModel
{

    public $tableName = 'col';

    /**
     *  获取用户信息 (严格遵循格式)
     * @param $x
     * @return mixed
     */
    public function getInfoBy($x)
    {
        $list = [];
        $result = $this->getInfo(['likes' => (int)$x]);
        if (empty($result)) {
            return $list;
        }
        foreach ($result as $item) {
            $list[] = $item;
        }
        return $list;
    }
}